package com.xmotor.test_swagger_spring_boot_starter;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description 统一返回对象
 * @Author Dang Xianyue
 * @Date 2020-08-15 10:48
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@ApiModel(description = "返回响应数据")
public class Result<T> implements Serializable {
    @ApiModelProperty(value = "响应代码")
    private int code;

    @ApiModelProperty(value = "响应信息")
    private String msg;

    @ApiModelProperty(value = "响应数据")
    private T data;
}
